package com.thread.resource.sharing.danger;

public class EvenGenerator extends IntGenerator {

	private int currentEvenValue = 0;

	@Override
	public int next() {
		++currentEvenValue;// 这里是危险的
		++currentEvenValue;
		return currentEvenValue;
	}

}
